<?php
	class PageController extends Controller {
		public function __construct(){
			$this->calledClass(get_class($this));
		}
		public function setlanguage(){
			Session::get("lang")==null||Session::get("lang")==""?Session::set("lang","en"):Session::set("lang",$this->get("lang"));
			echo Session::get("lang");
		}
		public function index(){
			$this->set(array(
					"layout"=>"",
					"mnu"=>"home"
				)
			);
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function about(){
			$this->set(array(
					"layout"=>"about",
					"mnu"=>"about"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function service(){
			$this->set(array(
					"layout"=>"service",
					"mnu"=>"service"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function builtout(){
			$this->set(array(
					"layout"=>"builtout",
					"mnu"=>"builtout"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function contact(){
			$this->set(array(
					"layout"=>"contact",
					"mnu"=>"contact"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function wwd(){
			$this->set(array(
					"layout"=>"wwd",
					"mnu"=>"wwd"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function townhouse(){
			$this->set(array(
					"layout"=>"townhouse",
					"mnu"=>"service"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function restoration(){
			$this->set("layout","restoration");
			$this->set(array(
					"layout"=>"restoration",
					"mnu"=>"restoration"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function mfc(){
			$this->set(array(
					"layout"=>"mfc",
					"mnu"=>"service"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function gallery(){
			$this->set(array(
					"layout"=>"gallery",
					"mnu"=>"gallery"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function flats(){
			$this->set(array(
					"layout"=>"flats",
					"mnu"=>"service"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function duplex(){
			$this->set(array(
					"layout"=>"duplex",
					"mnu"=>"service"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
		public function designanddecor(){
			$this->set(array(
					"layout"=>"designanddecor",
					"mnu"=>"designanddecor"
			));
			if(Session::get("lang")=="kh")$this->render("mainpagekh");
			else $this->render("mainpage");
		}
	}